<?php
//2015404233吴长猷

 require_once 'db_conn.php';

 $id=isset($_GET['id'])?$_GET['id']:0;
 
 $sql="DELETE FROM tb_emp WHERE e_id = $id";
 echo $id;
 $result=$db->query($sql);
 if ($result)
    {
        echo "<script language='javascript' type='text/javascript'>";        
        echo "window.location.href='index.php'";
        echo "</script>";
    }
 else 
    {
        echo "<script language='javascript' type='text/javascript'>";
        echo "alert('删除留言失败！');";
        echo "window.location.href='index.php'";
        echo "</script>";
        
    }
 
  